package day03;
//赋值运算符的演示
public class OperDemo4 {
    public static void main(String[] args) {
        //赋值运算符：=  += -= *= /= %=
        int a=5;
        a+=10;
        System.out.println(a);
        a*=2;
        System.out.println(a);
        a/=5;
        System.out.println(a);

        short b=5;
       // b=b+10;编译错误，需要强转
        b=(short)(b+10) ;
        short c=3;
        c+=3;
        System.out.println(c);
        System.out.println(b);
    }
}
